Skip to content

Conversation

meoconbatu
Copy link
Contributor

Fixes #80

This commit also supports arbitrary test data variable name when test function includes multiple assignments.

Recreate the PR from @junedev suggestion in #105 (comment)

@meoconbatu meoconbatu requested a review from a team as a code owner September 27, 2023 18:00
@github-actions
Copy link

Hello. Thanks for opening a PR on Exercism. We are currently in a phase of our journey where we have paused community contributions to allow us to take a breather and redesign our community model. You can learn more in this blog post. As such, all issues and PRs in this repository are being automatically closed.

That doesn't mean we're not interested in your ideas, or that if you're stuck on something we don't want to help. The best place to discuss things is with our community on the Exercism Community Forum. You can use this link to copy this into a new topic there.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions bot closed this Sep 27, 2023
This commit also support arbitrary test data variable name when test function
includes multiple assignments.
@junedev junedev reopened this Sep 27, 2023
@meoconbatu meoconbatu force-pushed the merge-separate-cases-test-file branch from d535464 to 21b939f Compare September 27, 2023 19:20
Copy link
Member

@junedev junedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After these changes, the tests for the conditionals testdata exercise don't compile anymore. It would be great if that could be fixed so go run . testrunner/testdata/concept/conditionals outdir works again. This command is mentioned in the readme so it makes sense it works. Having a runnable example (not only a unit test) also helps double checking the output is correct.

Maybe it would be best you work on a copy of the exercise in a folder called separate_cases_file. Then the current conditionals test data could stay as is and for your new folder/exercise we could even add an entry in integration_test.go to make sure the "end2end" output is as expected. (The tests are more like regression/snapshot tests. To set one up, print the "got" result of the test to the console and paste it into a file in the "expected" folder, given it looks correct of course.)

@junedev junedev added x:rep/large Large amount of reputation hacktoberfest-accepted Make this PR count for hacktoberfest labels Oct 6, 2023
@junedev
Copy link
Member

junedev commented Nov 23, 2023

@ErikSchierboom This should be good to go. I will do some more testing but would be good if you can stamp it.

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stamped :)

@exercism exercism deleted a comment from coveralls Oct 7, 2025
@andrerfcsantos andrerfcsantos requested a review from a team as a code owner October 7, 2025 22:10
Copy link
Member

@andrerfcsantos andrerfcsantos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is old but still wanted!

I'll work on trying to get it up-to-date with the changes in main.

@andrerfcsantos andrerfcsantos merged commit c5aced8 into exercism:main Oct 7, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted Make this PR count for hacktoberfest x:rep/large Large amount of reputation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test code extraction for exercises with separate file for test cases

4 participants